<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div class="earth-container">
        <div class="earth"></div>
    </div>
</body>
<style>
    /* 定义关键帧动画 */
    @keyframes earthRotate {
        from {
            transform: rotateY(0deg) scale(0) translateZ(0);
            opacity: 0;
        }

        to {
            transform: rotateY(360deg) scale(1) translateZ(100px);
            opacity: 1;
        }
    }

    /* 地球容器样式 */
    .earth-container {
        width: 200px;
        height: 200px;
        border-radius: 50%;
        position: relative;
        margin: 100px auto;
        perspective: 1000px;
        /* 设置透视点 */
        overflow: hidden;
    }

    /* 地球样式 */
    .earth {
        width: 100%;
        height: 100%;
        background-image: url('./img/map/08/7/105/46.jpg');
        /* 地球图片路径 */
        border-radius: 50%;
        position: absolute;
        animation: earthRotate 5s forwards;
        /* 应用动画 */
    }

    /* 地球的阴影效果 */
    .earth::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        transform: translate(-50%, -50%) scale(1.1);
        z-index: -1;
    }
</style>

</html>